<div ng-controller="CustomformCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <form name="customForm" novalidate ng-submit="customformAdd()">
        <ul class="sui-breadcrumb">
            <li><a href="#/customform/list">{{custom_form.form_name?custom_form.form_name:'自定义表单' | translate}}</a></li>
            <li class="active">{{msg_events_users.msg_id?'edit':'add_new' | translate}}</li>
        </ul>
        <div class="control-group">
            <label class="control-label v-top">{{'表单名称' | translate}}:</label>
            <div class="controls">
                <input id="title" type="text" name="form_name" ng-model="custom_form.form_name" />
                <div ng-show="custom_form.form_name.length == 0" class="sui-msg msg-error msg-clear help-block error">
                    <div class="msg-con">表单名称不能为空</div>
                    <s class="msg-icon"></s>
                </div>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top">{{'表单说明' | translate}}:</label>
            <div class="controls">
                <textarea rows="3 " ng-model="custom_form.form_msg" class="input-xlarge "></textarea>
                <div ng-show="custom_form.form_msg.length == 0" class="sui-msg msg-error msg-clear help-block error">
                    <div class="msg-con">表单说明不能为空</div>
                    <s class="msg-icon"></s>
                </div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'表单类型'|translate}}:</label>
            <div class="controls">
                <form-type ng-model="custom_form.type" dft="1"></form-type>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top">{{'启用表单'|translate}}:</label>
            <div class="controls">
                <label>
                    <input type="radio" ng-model="custom_form.display" ng-value="1" class="input-xlarge" required />是
                </label>
                </label>
                <label>
                    <input type="radio" ng-model="custom_form.display" ng-value="0" class="input-xlarge" required />否
                </label>
                </label>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="submit" id="submit" class="sui-btn btn-primary"
                    ng-disabled="!custom_form.form_name || !custom_form.form_msg">
                    <span>{{'save'|translate}}</span>
                </button>
            </div>
        </div>
    </form>
</div>